package com.tuanzi.loan.web.lazy.statistics;

import com.tuanzi.loan.business.service.statistics.RegisterNumStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.RegisterNumStatRequest;
import com.tuanzi.loan.vo.response.statistics.RegisterNumStatResponse;
import org.springframework.data.domain.Page;
/**
* @Description:    注册数分时统计
* @Author:         xionghao
* @CreateDate:     2019/1/4
*/
public class RegisterNumStatLazyDataModel  extends BaseLazyDataModel<RegisterNumStatRequest,RegisterNumStatResponse> {

    private RegisterNumStatService registerNumStatService = SpringContextHolder.getBean(RegisterNumStatService.class);

    public RegisterNumStatLazyDataModel(RegisterNumStatRequest registerNumStatRequest) {
        super(registerNumStatRequest);
    }

    @Override
    protected Page<RegisterNumStatResponse> doLoad(PageSearcher<RegisterNumStatRequest> pageSearcher) {
        return registerNumStatService.list(pageSearcher);
    }
}
